﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Text;

namespace Shared.DataBaseConfig
{
    /// <summary>
    /// 获取数据库链接
    /// </summary>
    public static class DBConnectionConfigExt
    {
        /// <summary>
        /// 初始化数据库链接配置对象
        /// </summary>
        public static IConfiguration InitDatabaseConnection(this IConfiguration configuration)
        {
            DBConnectionManage.Instance.InitConnectionConfig(configuration);
            return configuration;
        }
    }
}
